package SingletonDemo.exp1;


/**
 * @author zsh
 * @Description
 * @create 2022-05-13 19:38
 */
public class Main {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            System.out.println(TicketMaker.getTicketMaker().getNextTicketNum());
        }
//        TicketMaker ticket = TicketMaker.getTicketMaker();
//        int nextTicketNum1 = ticket.getNextTicketNum();
//        int nextTicketNum4 = ticket.getNextTicketNum();
//
//        System.out.println(nextTicketNum1);
//        int nextTicketNum2 = ticket.getNextTicketNum();
//        System.out.println(nextTicketNum2);
//        int nextTicketNum3 = ticket.getNextTicketNum();
//        System.out.println(nextTicketNum3);
    }
}
